package com.xzc.spring5.service;

import com.xzc.spring5.dao.UserDao;
import com.xzc.spring5.dao.UserDaoImpl;

/**
 * @author 徐州城
 * @version 1.0
 */
public class UserService {
    //创建UserDao类型属性，生成set()
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void add(){
        System.out.println("service add...");
        userDao.update();
    }
}
